package cn.com.eado.uwallpaper.net;

import com.google.gson.Gson;

/**
 * Created by lcy on 2015/12/23.
 */
public class GsonUtil {
    private Gson gson;
    private static GsonUtil gsonUtil;

    private GsonUtil() {
        gson=new Gson();
    }

    public static GsonUtil getInstance() {
        if (gsonUtil==null){
            synchronized (GsonUtil.class){
                if (gsonUtil==null){
                    gsonUtil=new GsonUtil();
                }
            }
        }
        return gsonUtil;
    }
    public Gson getGson() {
        return gson;
    }
}
